package com.log.service;

import com.log.model.LogDTO;
import com.log.request.AddLogRequest;
import com.log.util.JsonData;

import java.io.IOException;
import java.util.List;

/**
 * @ClassDescription:
 * @Author: zhaoyi
 * @Created: 2024/7/12 11:11
 */
public interface LogService {

    /**
     * 创建日志文件
     * @param request
     * @return
     */
    List<LogDTO> creatLogFile(AddLogRequest request);


    /**
     * 解析并发送文件
     * @param poolSize
     * @return
     * @throws IOException
     */
    JsonData readFileAndSend(Integer poolSize);
}
